package com.secxiot.provider.narcotic.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 药师药品记录
 */
@ApiModel
@Data
@ToString
public class NarcoticChemistRecordVo {

    @ApiModelProperty(value = "药师药品记录id", required = true)
    private Long chemistRecordId;

    @ApiModelProperty(value = "用户id", required = true)
    private Long patientUserId;

    @ApiModelProperty(value = "药品Id", required = true)
    private Long drugsId;

    @ApiModelProperty(value = "患者资料Id", required = true)
    private Long patientInfoId;

    @ApiModelProperty(value = "医疗机构Id", required = true)
    private Long hospitalId;

    @ApiModelProperty(value = "申请用药记录Id", required = true)
    private Long patientDrugsRecordId;

    @ApiModelProperty(value = "医生用户Id", required = true)
    private Long doctorUserId;

    @ApiModelProperty(value = "医生药品记录Id", required = true)
    private Long doctorRecordId;

    @ApiModelProperty(value = "药师用户Id", required = true)
    private Long chemistUserId;

    @ApiModelProperty(value = "备注", required = true)
    private String remark;

    @ApiModelProperty(value = "状态(0无效;1有效)", required = true)
    private Integer status;

    @ApiModelProperty(value = "驳回原因", required = true)
    private String refuseReason;

    @ApiModelProperty(value = "审核状态 1 审核通过 2 驳回", required = true)
    private Integer isAudit;

    @ApiModelProperty(value = "审核时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;

    @ApiModelProperty(value = "药品名称", required = false)
    private String drugsName;

    @ApiModelProperty(value = "医院名称", required = false)
    private String hospitalName;

    @ApiModelProperty(value = "取药地址", required = false)
    private String takeMedicineAddress;

    @ApiModelProperty(value = "取药设置时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date takeMedicineSetTime;

    @ApiModelProperty(value = "用户名称", required = false)
    private String userName;

    @ApiModelProperty(value = "药师手机号码", required = false)
    private String chemistPhone;

    @ApiModelProperty(value = "创建时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "取药状态", required = false)
    private Integer takeState;
}
